<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<h2 class="contentTitle">出资方更新</h2>
<div class="pageContent">
	<form method="post" action="${rootpath }/back/investor/investorUpdateSubmit.htm"
		enctype="multipart/form-data"
		class="pageForm required-validate"
		onsubmit="return iframeCallback(this);">
		<input type="hidden" name="id" value="${requestScope.investor.id}">
		
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>名称：</dt>
				<dd>
					<input type="text" name="name" class="required" value="${requestScope.investor.name}"
						alt="请输入您的名称" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>编码：</dt>
				<dd>
					<input type="text" name="code" value="${requestScope.investor.code}"
						class="required"
						alt="请输入您的编码" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>网址：</dt>
				<dd>
					<input type="text" name="url" class="required"  value="${requestScope.investor.url}"
						alt="请输入您的网址" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>联系人：</dt>
				<dd>
					<input type="text" name="contactName" class="required" alt="请输入您的联系人" value="${requestScope.investor.contactName}" />
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>联系电话：</dt>
				<dd>
					<input type="text" name="contactPhone" class="phone" alt="请输入您的电话"  value="${requestScope.investor.contactPhone}"/>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>总量：</dt>
				<dd>
					<input type="text" name="totalNum" class="digits" alt="请输入您的电话"  value="${requestScope.investor.totalNum}"/>
					<span class="info">成功量:${requestScope.investor.succedNum}</span>
				</dd>
			</dl>
			<dl>
				<dt>发布时间：</dt>
				<dd>
					<input type="text" name="pubTime" class="date" alt="请输入您的发布时间" readonly="readonly"
					datefmt="yyyy-MM-dd HH:mm:ss"
					 value='<fmt:formatDate value="${requestScope.investor.pubTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
					<span class="info">用来排序</span>
				</dd>
			</dl>
			<dl>
				<dt>LOGO：</dt>
				<dd>
					<input type="file" name="file"/>
					<span class="info">请上传jpg,bmp图片文件</span>
				</dd>
			</dl>
			<dl>
				<dt>类型：</dt>
				<dd>
					<input type="radio" id="coopType0InvestorInsert" name="coopType" value="0" ${requestScope.investor.coopType == '0' ? 'checked':'' }><label class="label_none" for="coopType0InvestorInsert">直通</label>
					<input type="radio" id="coopType1InvestorInsert" name="coopType" value="1" ${requestScope.investor.coopType == '1' ? 'checked':'' }><label class="label_none" for="coopType1InvestorInsert">非直通</label>
				</dd>
			</dl>
			<dl>
				<dt>状态：</dt>
				<dd>
					<input type="radio" id="status1InvestorInsert" name="status" value="1" ${requestScope.investor.status == '1' ? 'checked':'' }><label class="label_none" for="status1InvestorInsert">启用</label>
					<input type="radio" id="status0InvestorInsert" name="status" value="0" ${requestScope.investor.status == '0' ? 'checked':'' }><label class="label_none" for="status0InvestorInsert">禁用</label>
				</dd>
			</dl>
			<dl>
				<dt>内容：</dt>
				<dd>
					<textarea class="editor" name="content" rows="8" cols="100"
								upLinkUrl="upload.php" upLinkExt="zip,rar,txt" 
								upImgUrl="upload.php" upImgExt="jpg,jpeg,gif,png" 
								upFlashUrl="upload.php" upFlashExt="swf"
								upMediaUrl="upload.php" upMediaExt:"avi">${requestScope.investor.content}</textarea>
				</dd>
			</dl>
			<dl>
				<dt>LOGO：</dt>
				<dd>
					<img alt="" height="100" width="150" src="${rootpath }${requestScope.investor.logo}">
				</dd>
			</dl>
			<dl>
				<dt>创建时间：</dt>
				<dd>
					<fmt:formatDate value="${requestScope.investor.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</dd>
			</dl>
			<dl>
				<dt>更新时间：</dt>
				<dd>
					<fmt:formatDate value="${requestScope.investor.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</dd>
			</dl>
			<!-- <div class="divider"></div>
			<p>自定义扩展请参照：dwz.validate.method.js</p>
			<p>错误提示信息国际化请参照：dwz.regional.zh.js</p> -->
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>

<script type="text/javascript">
	function customvalidXxx(element) {
		if ($(element).val() == "xxx")
			return false;
		return true;
	}
</script>
